from django.urls import path
from . import views

app_name = "main"

urlpatterns = [
    # 第一个参数是路由路径 第二个参数是路由对应的视图函数
    # 第三个参数是路由名字
    path("detail/<int:num>", views.detail, name="detail"),
    path('', views.index, name="index"),
    path('recommend/', views.recommend, name="recommend"),
    path('catalog/', views.catalog, name="catalog"),
    path('category/<int:c_id>', views.category, name="category"),
    path('label/<int:l_id>', views.label, name="label"),
    path('status/<int:s_id>', views.status, name="status"),
    path('rank/', views.rank, name="rank"),
    path('play/', views.play, name="play"),
    path('get_video_link/', views.get_video_link, name='get_video_link'),

    # 带有参数路由

]
